package com.example.recyclerviewdemo.tree

import com.chad.library.adapter.base.BaseNodeAdapter
import com.chad.library.adapter.base.entity.node.BaseNode

class NodeAdapter (nodeList: MutableList<BaseNode>? = null,
): BaseNodeAdapter(nodeList) {

    private var rootNodeProvider = RootNodeProvider()

    init {
        addNodeProvider(rootNodeProvider)
    }

    fun setListener(listener: RootNodeProvider.TreeClick){
        rootNodeProvider.setListener(listener)
    }

    override fun getItemType(data: List<BaseNode>, position: Int): Int {
        return 0
    }

}